/**
 * KafkaBrokerDto.java
 */
package com.mht2017.common.dto;

/**
 * <pre>
 * path: /brokers/ids/<id>
 * {"jmx_port":-1,"timestamp":"1489641177186","endpoints":["PLAINTEXT://localhost:9092"],"host":"localhost","version":3,"port":9092}
 * </pre>
 *
 * @author yutong.xiao
 * @date 2017年3月16日 下午1:51:23
 */
public class KafkaBrokerDto {

	private int id;
	private long timestamp;
	private String host;
	private int port;
	private int version;
	private int jmx_port;
	private String endpoints;

	@Override
	public String toString() {
		return String.format("%s:%s/id:'%s',v:%s", host, port, id, version);
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public int getJmx_port() {
		return jmx_port;
	}

	public void setJmx_port(int jmx_port) {
		this.jmx_port = jmx_port;
	}

	public String getEndpoints() {
		return endpoints;
	}

	public void setEndpoints(String endpoints) {
		this.endpoints = endpoints;
	}
}
